home *** CD-ROM | disk | FTP | other *** search
- ReadArchive "statics.vib"
- ReadArchive "colors.vib"
-
- static pattern1map = SpectrumOfColors(
- [0.000, '0.698, 0.533, 0.122', 0.115, '0.529, 0.173, 0.071']
- [0.115, '0.529, 0.173, 0.071', 0.230, '0.698, 0.533, 0.122']
- [0.230, '0.698, 0.533, 0.122', 0.336, '0.424, 0.325, 0.075']
- [0.336, '0.424, 0.325, 0.075', 0.460, '0.698, 0.533, 0.122']
- [0.460, '0.698, 0.533, 0.122', 0.628, '0.306, 0.235, 0.055']
- [0.628, '0.306, 0.235, 0.055', 0.708, '0.698, 0.341, 0.122']
- [0.708, '0.698, 0.341, 0.122', 0.796, '0.000, 0.000, 0.000']
- [0.796, '0.000, 0.000, 0.000', 0.858, '0.596, 0.373, 0.106']
- [0.858, '0.596, 0.373, 0.106', 0.982, '0.494, 0.376, 0.086']
- [0.982, '0.494, 0.376, 0.086', 1.001, '0.698, 0.533, 0.122'])
-
- static pattern2map = SpectrumOfColors(
- [0.000, '0.824, 0.725, 0.584', 0.168, '0.514, 0.584, 0.533']
- [0.168, '0.514, 0.584, 0.533', 0.301, '0.298, 0.376, 0.318']
- [0.301, '0.298, 0.376, 0.318', 0.398, '0.263, 0.337, 0.282']
- [0.398, '0.263, 0.337, 0.282', 0.558, '0.431, 0.506, 0.451']
- [0.558, '0.431, 0.506, 0.451', 0.655, '0.529, 0.631, 0.471']
- [0.655, '0.529, 0.631, 0.471', 0.735, '0.333, 0.376, 0.318']
- [0.735, '0.333, 0.376, 0.318', 0.823, '0.298, 0.376, 0.318']
- [0.823, '0.298, 0.376, 0.318', 0.876, '0.416, 0.376, 0.318']
- [0.876, '0.416, 0.376, 0.318', 0.929, '0.416, 0.376, 0.318']
- [0.929, '0.416, 0.376, 0.318', 1.001, '0.824, 0.725, 0.584'])
-
- static noisy_functionA = fmod(|Po|+noise(Po, 3), 1)
- static noisy_functionB = fmod(|Po|+scnoise(Po, 4), 1)
-
- Declare component1 = Shader [ FunctionalSurface [
- Color pattern1map[noisy_functionA]
- Kd 0.95
- Ks 0.05
- BlinnSpecularBRDF 5
- ]
- ]
-
- Declare component2 = Shader [ FunctionalSurface [
- Color pattern1map[noisy_functionB]
- Kd 0.95
- Ks 0.05
- BlinnSpecularBRDF 5
- ]
- ]
-
- Declare ground = Shader [ Composite [ (component1, 0.6) , (component2, 0.4) ] ]
-
- Declare glass_R = Shader [ FunctionalSurface [
- Color '0,0,0'
- Ka 0.05
- Kd 0.0
- Ks 0.25
- Kt (0.98*|N . I|, 1.35, '1,.5,.5')
- Kr 0.2
- BlinnSpecularBRDF 6
- Caustics (0.6,InternalCaustics)
- ]
- ]
-
- Declare glass_G = Shader [ FunctionalSurface [
- Color '0,0,0'
- Ka 0.05
- Kd 0.0
- Ks 0.25
- Kt (0.98*|N . I|, 1.35, '.5,1,.5')
- Kr 0.2
- BlinnSpecularBRDF 6
- Caustics (0.6,InternalCaustics)
- ]
- ]
-
- Declare glass_B = Shader [ FunctionalSurface [
- Color '0,0,0'
- Ka 0.05
- Kd 0.0
- Ks 0.25
- Kt (0.98*|N . I|, 1.35, '.7,.7,1')
- Kr 0.2
- BlinnSpecularBRDF 6
- Caustics (0.6,InternalCaustics)
- ]
- ]
-
- Declare mirror = Shader [ PlainSurface [
- Ka 0
- Kd 0
- Ks 0
- Kr 1
- Caustics 0.6
- ]
- ]
-
- Declare glass_Y = Shader [ FunctionalSurface [
- Color '0,0,0'
- Ka 0.025
- Kd 0.0
- Ks 0.25
- Kt (0.965*|N . I|, 1.39, yellow)
- Kr 0.2
- CookSpecularBRDF 6
- Caustics 0.5
- ]
- ]
-